<include file="header" />
<include file="leftmenu" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/pagination.css" />

<div class="right">
    <div class="title">我的数据</div>
    <div class="list">
      <div class="table-top">
        <div class="tabr">API名称</div>
        <div class="tab">调用次数</div>
        <div class="tab">剩余次数</div>
        <div class="tab">截止时间</div>
        <div class="tab">操作</div>
      </div>
      
      <!-- 循环开始 -->
      <foreach name="data" item="value" key="key">
      <div class="table-foot <if condition='$key%2 eq 1'>qs</if>">
        <div class="tabr">{$value.api_name}</div>
        <div class="tab">{$value.cnt_call}</div>

        <if condition="($value.rest_time neq -1) and ($value.rest_time lt time())">
        <div class="tab">0</div>
        <else />
        <div class="tab">{$value.rest_call}</div>
        </if>
        
        <div class="tab">
          <if condition="$value.rest_time eq -1">
            无
          <elseif condition="($value.rest_time gt 0) and ($value.rest_time gt time())"/>
          {$value.rest_time|date='Y-m-d H:i:s',###}
          <else />
          已过期
          </if>
        </div>
        <div class="tab">
          <if condition="$value['api_status'] eq 1">
          <a href="/index/detail.html?sid={$value.service_id}&api_id={$value.api_id}" title="文档" class="l" target="_blank" status="{$value.api_status}">文档</a>
          <a href="/index/toolshttpproxy.html?api_id={$value.api_id}&service_id={$value.service_id}" title="测试" class="r" target="_blank">测试</a>
          <else />
          已下架
          </if>
        </div>
      </div>
      </foreach>
      <!-- 循环结束 -->
    </div>
  </div>



<script type="text/javascript" src="__PUBLIC__/home/js/jquery.pagination.min.js"></script>

</body>
</html>
